<template>
  <div class="check_button" :class="{active:!isCb}" @click="CheckClick">
    <img src="@/assets/img/cart/check_active.png"
         alt="" >
  </div>
</template>

<script>

  export default {
    name: "CheckButton",
    props:{
      isCb: Boolean,
      default: true
    },
    methods:{
      CheckClick(){
        this.$emit('CheckClick',this.isCb)
      }
    }
  }
</script>

<style scoped>
  .check_button {
    display: inline-block;
    border-radius: 50%;
    border: 1px solid white;
    height: 16px;
    width: 16px;
  }
  .check_button img {
    height: 16px;
    width: 16px;
    margin: -1px 0 0 -1px;
  }
  .active img{
    display:none;
  }
  .active{
    border-color: red;
  }
</style>
